#!/bin/bash
#路径为/home/USER_NAME/.vnc/xstartup

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
autocutsel -fork
vncconfig −iconic &
dbus-launch --exit-with-session  gnome-session &
